package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.perfectschool.pojo.NewsPhoto;
import org.springframework.stereotype.Repository;

import java.util.List;

//  新闻图片表
@Repository
public interface NewsPhotoMapper extends BaseMapper<NewsPhoto> {
    //查询某条新闻的全部照片
    List<NewsPhoto> getAllNewsPhotoByNewsId(int newsId);

    //删除某新闻所有图片
    int deleteNewsPhotoById(int newsId);

    //修改新闻图片
    boolean updateNewsPhoto(NewsPhoto newsPhoto);
}
